import { Component, ViewChild, AfterViewInit, OnInit } from "@angular/core";
import { BannerService } from './../../vsp/bean/banner.service';

@Component({
  selector: 'banner',
  styleUrls: ['./banner.component.css'],
  templateUrl: './banner.component.html',
  providers: [
    BannerService
  ]
})
export class BannerComponent implements OnInit {

  config: SwiperOptions = {
    pagination: '.swiper-pagination',
    paginationClickable: true,
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    spaceBetween: 30,
    loop:true,
    autoplay:3000


};


  // 图片数组
  data: Array<number>;
  // 配置

  constructor(
    public bannerService: BannerService,
  ) {

    this.data = [
      1, 2, 3, 4,
    ]
  }

  ngOnInit() {

  }
}
